package com.gitee.wsl.struct.attribute.pairs


/**
 * An [ArrayList] with [name] containing possible parameter values.
 *
 * @see AllPairs.AllPairsBuilder.withParameter
 */
class Parameter(val name: String, values: List<*>) : List<Any?> by values {

    /**
     * Constructs [Parameter] with specified name and possible values.
     *
     * @param name [Parameter] name
     * @param values possible [Parameter] values
     */
    constructor(name: String, vararg values: Any?) : this(name, values.toList())

    override fun toString(): String {
        return name + ": " + super.toString()
    }
}

